package com.ddx.dao;

import com.ddx.pojo.ShortVideoComment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShortVideoCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShortVideoComment record);

    int insertSelective(ShortVideoComment record);

    ShortVideoComment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShortVideoComment record);

    int updateByPrimaryKey(ShortVideoComment record);

    List<ShortVideoComment> selectByRecord(ShortVideoComment record);

    List<ShortVideoComment> selectFirstByVideoId(Integer videoId);

    int updateAddLikeNum(Integer id);

    int updateSubLikeNum(Integer id);

    List<ShortVideoComment> selectNewsList(Integer userId);
}